<%@page import="com.wanmait.shoppingsys.vo.UserInfo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:include page="/inc/header.jsp"></jsp:include>

	<% UserInfo userinfo  =(UserInfo)request.getSession().getAttribute("userinfo");%>
	<%String path = request.getServletContext().getContextPath();%>
<div class="search_bar clearfix">
		
		<a href="<%=path %>/index.jsp" class="logo fl"><img src="<%=path %>/images/logo.png"></a>
	</div>

	<div class="main_con clearfix">
		<div class="left_menu_con clearfix">
			<h3>用户中心</h3>
			<ul>
				<li><a href="<%=path %>/userinfo/info.jsp" class="active">· 个人信息</a></li>
				<%if(userinfo!=null){ %>
				<li><a href="<%=path %>/GoodsController?action=findAll&id=<%=userinfo.getId() %>" class="">· 全部订单</a></li>
				<% }else{%>
				<li><a href="<%=path %>" class="">· 全部订单</a></li>
				<%} %>
				<li><a href="<%=path %>/userinfo/address.jsp">· 收货地址</a></li>
			</ul>
			
		</div>
		<div class="right_content clearfix">
				<div class="info_con clearfix">
				<h3 class="common_title2">基本信息</h3>
						<ul class="user_info_list">
						<%if(userinfo!=null) {
						%>
							<li><span>用户名：</span><%=userinfo.getName() %></li>
							<li><span>邮   箱 ：</span><%=userinfo.getEmail() %></li>	
							
						<%} 
						else{%>
							<li><span>用户名：</span></li>
							<li><span>邮   箱 ：</span></li>	
						<%} %>
						
						</ul>
				</div>


<jsp:include page="/inc/footer.jsp"></jsp:include>